const filter = {
  formatDate: function (value) {
    const dt = new Date(value)
    const year = dt.getFullYear()
    const month = (dt.getMonth() + 1).toString().padStart(2, '0')
    const date = dt.getDate().toString().padStart(2, '0')
    return `${year}-${month}-${date}`
  }
}
export default filter
